home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / updates / update26.zoo / gcc-231 / README.TOS < prev    next >
Encoding:
Text File  |  1992-11-07  |  4.2 KB  |  119 lines

  1. This is the README file for the GNU native/cross compiler. Diffs are
  2. with respect to GCC V2.3.1
  3.  
  4.     -configuration:
  5.         copy all the files from the gcc v2.3.1 distribution
  6.         into a directory called SRC (i created symbolic links between
  7.         the files).
  8.         copy all the files from the gcc v2.3.1 distribution
  9.              sub-directory config into SRC/config
  10.         copy all the files in this directory into SRC.
  11.            (note: there are 2 .h files astab.h and math-68881.h to be
  12.                copied into SRC too).
  13.         copy xm-atari.h and tm-atari.h into SRC/config
  14.         cd to SRC
  15.         Apply the diffs using larry walls patch program
  16.             patch < gcc-231.diff
  17.         make the following links in SRC
  18.             config.h to config/xm-atari.h
  19.             tconfig.h to config/xm-atari.h
  20.             hconfig.h to config/xm-atari.h
  21.             tm.h to config/tm-atari.h
  22.             aux-output.c to config/m68k.c
  23.             md to config/m68k.md
  24.  
  25.         edit Makefile.* to make sure the following
  26.         are defined appro.:
  27.         CROSSDIR -- the home directory of the cross dev. system
  28.  
  29.         look over tm-atari.h and xm-atari.h
  30.  
  31.         edit config/tm-atari.h and at the top of the file set
  32.         TARGET_DEFAULT appropriately. this file is now
  33.         conditionalized for various combinations of 
  34.         68000/68020/68881
  35.  
  36.         you DO NOT have to edit gcc.c anymore to look for paths to edit.
  37.  
  38.     -if you already have a native tos-gcc and want to use
  39.      that to make new tos executables, skip the next few
  40.      steps that make the cross-compiler system.
  41.      Please note that you will not be able to compile the
  42.      compiler itself on a St with less that 2.5 M of memory.
  43.  
  44.     -make cross compiler by
  45.         make -f Makefile.cross
  46.     will make and install gcc-cpp.ttp, gcc-cc1.ttp  and gcc.ttp
  47.  
  48.     -clean out the directory by
  49.         make -f Makefile.cross clean
  50.     - go and make a cross-gas cross-ld and cross-as
  51.     - make the tos gcc libraries using the cross-compiler
  52.       system you made above.
  53.  
  54.     - to make atari st executables
  55.        - make and install cross compiler as above (or use your native
  56.         tos-gcc compiler)
  57.        - make by
  58.         make -f Makefile.st
  59.  
  60. Please note: *.c files in this directory are the already patched files
  61. for the gcc-src directory.
  62.  
  63. which makefile to use:
  64.  
  65.  
  66. On a (BSD unix host)       On a HPUX host
  67. (Only sun sparc tested)
  68.  
  69. GMakefile        GMakefile.hp        to make the CROSS-g++ parts
  70. GMakefile.st        GMakefile.st.hp        to make NATIVE-g++ parts
  71. Makefile.cross      Makefile.hp        to make CROSS-gcc parts
  72. Makefile.st        Makefile.st.hp        to make NATIVE-gcc parts
  73.  
  74.  
  75. NATIVE parts are 68k code that run on the atari.
  76. CROSS parts run on the HOST and not on the atari.
  77.  
  78. --
  79. bang:   uunet!cadence!bammi            jwahar r. bammi
  80. domain: bammi@cadence.com
  81. GEnie:    J.Bammi
  82. CIS:    71515,155
  83.  
  84. note about gcc/precompiled headers/unixmode:
  85.  
  86. Return-Path: <uunet!iti.informatik.th-darmstadt.de!alexlehm>
  87. From: uunet!iti.informatik.th-darmstadt.de!alexlehm
  88. Subject: GCC 2.x problem with 'precompiled headers' solved
  89. To: bammi
  90. Date: Fri, 19 Jun 92 14:30:19 MET DST
  91. X-Mailer: ELM [version 2.3 PL11]
  92.  
  93. Hi Jwahar,
  94.  
  95.   I just build a cross compiler for GCC2.2.2 for my new NeXTstation and I must
  96. say I'm rather pleased with the speed I get with this hardware.
  97. I explored the problem with include filesname and I think I came up with a
  98. solution:
  99.  
  100.  The new GCC already accepts precompiled headers even if he cannot create any.
  101. This is done by searching for file with an added number to the normal include
  102. name. e.g. config.h becomed config.h0, config.h1 etc. This works just fine
  103. with the native compiler as long as the extension of the name is less than
  104. three chars. If this is the case, a filename becomes something like this:
  105. atari.trm0. If UNIXMODE is set right this will result in no problem since the
  106. name can be distinguished from the normal name, but if only normal TOS filenames
  107. are allowed, the original header file is found under this name and he tries to
  108. load the file as precompiled header. This of course fails and he reties with
  109. atari.trm1 and so on. In other words, the compiler just hangs up.
  110. I changed the code to check whether UNIXMODE is set and if the filename has
  111. a too long extension. In this case the name if converted to something like
  112. atari.tr0. The same conversion will have to be made when dumping headers, but
  113. as far as I tried this feature doesn't work up to now.
  114.  
  115. the diff is with respect to gcc.2.2.1 pl1 (the one that came with update22).
  116.  
  117.                         bye ... Alexander
  118.  
  119.